
//基础公共url
var baseUrl = '.'
// 后台url
import  {url as backUrl} from '@/config'
//基础组件库
export default {
  "label": '地图',
  "icon": 'el-icon-map-location',
  "children": [{
    label: '地图',
    option: {
      "name": "纯地图",
      "title": "纯地图",
      "icon": "icon-map",
      "img": require('@/assets/map.png'),
      "data": [
        [
          {
            "from": "新乡",
            "to": "新乡",
            "type": "move_out",
            "value": 200,
            "lng1": 116.402217,
            "lat1": 35.311657,
            "lng2": 116.402217,
            "lat2": 35.311657
          },
          {
            "from": "新乡",
            "to": "呼和浩特",
            "type": "move_out",
            "value": 90,
            "lng1": 116.402217,
            "lat1": 35.311657,
            "lng2": 111.4124,
            "lat2": 40.4901
          },
          {
            "from": "新乡",
            "to": "哈尔滨",
            "type": "move_out",
            "value": 60,
            "lng1": 116.402217,
            "lat1": 35.311657,
            "lng2": 127.9688,
            "lat2": 45.368
          },
          {
            "from": "新乡",
            "to": "石家庄",
            "type": "move_out",
            "value": 100,
            "lng1": 116.402217,
            "lat1": 35.311657,
            "lng2": 114.4995,
            "lat2": 38.1006
          },
          {
            "from": "新乡",
            "to": "昆明",
            "type": "move_out",
            "value": 30,
            "lng1": 116.402217,
            "lat1": 35.311657,
            "lng2": 102.9199,
            "lat2": 25.4663
          }
        ]
      ],
      "dataFormatter": "",
      "stylesFormatter": "",
      "component": {
        "width": 800,
        "height": 500,
        "name": "map",
        "prop": "map",
      },
      "option": {
        "borderWidth": 1,
        "scale": 87,
        "type": 0,
        "borderColor": "#0dffff",
        "areaColor": "#061d33",
        "banner": true,
        "bannerTime": 3000,
        "fontSize": 14,
        "zoom": 0.5,
        "empAreaColor": "rgba(35, 183, 229, 0.42)",
        "empColor": "#fff",
        "index": "894edc1d-d2f0-4616-962c-8e61083ada71",
        "mapData": backUrl + "/map/data/100000?name=国家",
        "color": "rgba(13, 255, 255, 1)",
      }
    },
  },
    {
      label: '飞线图',
      option: {
        "name": "飞线图",
        "title": "飞线图",
        "icon": "el-icon-position",
        "img": require('@/assets/map.png'),
        "dataType": 0,
        "dataMethod": 'get',
        "url": baseUrl + "/flyingLineMap",
        "data": {
          data: [
            [
              {
                "from": "新乡",
                "to": "新乡",
                "type": "move_out",
                "value": 200,
                "lng1": 116.402217,
                "lat1": 35.311657,
                "lng2": 116.402217,
                "lat2": 35.311657
              },
              {
                "from": "新乡",
                "to": "呼和浩特",
                "type": "move_out",
                "value": 90,
                "lng1": 116.402217,
                "lat1": 35.311657,
                "lng2": 111.4124,
                "lat2": 40.4901
              },
              {
                "from": "新乡",
                "to": "哈尔滨",
                "type": "move_out",
                "value": 60,
                "lng1": 116.402217,
                "lat1": 35.311657,
                "lng2": 127.9688,
                "lat2": 45.368
              },
              {
                "from": "新乡",
                "to": "石家庄",
                "type": "move_out",
                "value": 100,
                "lng1": 116.402217,
                "lat1": 35.311657,
                "lng2": 114.4995,
                "lat2": 38.1006
              },
              {
                "from": "新乡",
                "to": "昆明",
                "type": "move_out",
                "value": 30,
                "lng1": 116.402217,
                "lat1": 35.311657,
                "lng2": 102.9199,
                "lat2": 25.4663
              }
            ]
          ]
        },
        "dataFormatter": "(data)=>{ \n return data.data; \n }",
        "component": {
          "width": 800,
          "height": 500,
          "name": "flyingLineMap",
          "prop": "flyingLineMap",
        },
        "option": {
          "borderWidth": 1,
          "scale": 87,
          "type": 0,
          "borderColor": "#0dffff",
          "areaColor": "#061d33",
          "fontSize": 14,
          "zoom": 0.5,
          "showGeoLabelName": false,
          "empAreaColor": "rgba(35, 183, 229, 0.42)",
          "empColor": "#fff",
          "mapData": backUrl + "/map/data/100000?name=国家",
          "mapLevel": "国家",
          "province": "330000",
          "city": "",
          "color": "rgba(13, 255, 255, 1)",
          "effectPeriod": 6, // 飞线动画时长
          "effectSymbol": "path://M922.6 698.6v-74.7l-335.9-224V138.6S586.7 64 512 64s-74.7 74.6-74.7 74.6v261.3L101.4 624v74.7l335.9-112v209.1l-112 89.6V960L512 885.3l186.6 74.6v-74.6l-112-89.6V586.6l336 112z", // 飞线形状
          "effectColor": "#FFF", // 飞线标记颜色
          "effectSymbolSize": 15, // 飞线标记大小
          "effectTrailLength": 0.5// 特效尾迹长度
        }
      }
    },
    {
      label: '气泡地图',
      option: {
        "name": "气泡地图",
        "title": "气泡地图",
        "icon": "el-icon-location",
        "img": require('@/assets/map.png'),
        "dataType": 0,
        "dataMethod": 'get',
        "url": baseUrl + "/airBubbleMap",
        "data": [
          {
            "name": "昆明",
            "value": 126,
            "lng": 102.9199,
            "lat": 25.4663
          },
          {
            "name": "石家庄",
            "value": 35,
            "lng": 114.4995,
            "lat": 38.1006
          },
          {
            name: "嘉兴",
            "value": 999,
            "lng": 121.3781,
            "lat": 31.4006
          }
        ],
        "dataFormatter": "(data)=>{ \n return data; \n }",
        "component": {
          "width": 800,
          "height": 500,
          "name": "airBubbleMap",
          "prop": "airBubbleMap",
        },
        "option": {
          "borderWidth": 1,
          "scale": 87,
          "type": 0,
          "borderColor": "#0dffff",
          "areaColor": "#061d33",
          "fontSize": 14,
          "zoom": 0.5,
          "showGeoLabelName": false,
          "empAreaColor": "rgba(35, 183, 229, 0.42)",
          "empColor": "#fff",
          "mapData": backUrl+"/map/data/100000?name=国家",
          "mapLevel": "国家",
          "province": "330000",
          "city": "",
          "color": "rgba(13, 255, 255, 1)",
          maxSize4Pin: 100,
          minSize4Pin: 20
        }
      }
    }
  ]
}



